package com.pro.mapper;

import com.pro.pojo.JsGoodsCount;
import com.pro.pojo.JsProductCategroy;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface JsProductCategroyMapper {
    /*商品列表树*/
    public List<JsProductCategroy> getTree();
    /**
     *
     * @author ZPT
     * @date 2021/11/8 15:12
     * @content :删除商品分类
     */
    public Boolean delProductCategroy(Integer categroyId);
    /**
     *
     * @author ZPT
     * @date 2021/11/8 15:20
     * @content :修改商品分类
     */
    public Boolean updateProductCategroy(JsProductCategroy jsProductCategroy);
    /**
     *
     * @author ZPT
     * @date 2021/11/8 15:22
     * @content :添加商品分类
     */
    public Boolean addProductCategroy(JsProductCategroy jsProductCategroy);

    /**
     *
     * @author ZPT
     * @date 2021/12/3 11:41
     * @content :商品类型对应的收藏量
     */
    public List<JsGoodsCount> collectionCount();

    /**
     *
     * @author ZPT
     * @date 2021/12/5 13:25
     * @content :商品类型对应的点击量
     */
    public List<JsGoodsCount> hitsSum();
    /**
     *
     * @author ZPT
     * @date 2021/12/9 16:23
     * @content :商品类型对应的评论量
     */
    public List<JsGoodsCount> commentSum();

}
